package br.com.statehome.app;

import br.com.statehome.enuns.EnumBanco;
import br.com.statehome.enuns.EnumConta;
import br.com.statehome.models.Conta;

public class Main {

    public static void main(String[] args) {
        System.out.println("getDdd");

        Conta instance = new Conta("1111", EnumBanco.bB_bancoPopularDoBrasil, EnumConta.salario, "121211");
        System.out.println(instance.getTipo());
        System.out.println(instance);
        System.out.println(instance.getBanco());
        if (instance.getBanco().getCodigo().equalsIgnoreCase("104")) {
            System.out.println("Terá desconto <"+instance.getBanco().getNome()+">");
        } else {
            System.out.println("I'm sorry... Não terá desconto <"+instance.getBanco().getNome()+">");
        }
    }
}
